Skip to main content

All VLPs

All VLPs

Queries all the VLP contract addresses and specifies the tokens for each.

query All_vlps($max: [String], $min: [String], $skip: Int, $limit: Int) {
router {
all_vlps(max: $max, min: $min, skip: $skip, limit: $limit) {
vlps {
vlp
token_1
token_2
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query All_vlps($max: [String], $min: [String], $skip: Int, $limit: Int) {\n router {\n all_vlps(max: $max, min: $min, skip: $skip, limit: $limit) {\n vlps {\n vlp\n token_1\n token_2\n }\n }\n }\n}","variables":{"max":null,"min":null,"skip":null,"limit":null}}'

Open in Playground

Arguments

NameTypeDescription
max[String]The upper limit token pair to return (exclusive).
min[String]The lower limit token pair to start from (inclusive).
skipIntThe number of results to skip in the response.
limitIntThe maximum number of results to return.

Return Fields

FieldTypeDescription
vlpStringThe VLP contract address.
token_1StringThe identifier of the first token in the pair.
token_2StringThe identifier of the second token in the pair.